package com.aizhixin.lab.project.course.repository;

import com.aizhixin.lab.project.course.entity.TeacherModuleTask;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherModuleTaskRepository extends JpaRepository<TeacherModuleTask,String> {
    Integer countByModuleIdAndDeleteFlag(String moduleId,Integer deleteFlag);
    Integer countAllByModuleIdAndDeleteFlag(String moduleId,Integer deleteFlag);
    List<TeacherModuleTask> findByModuleIdAndDeleteFlagOrderByTaskNoAsc(String moduleId, Integer deleteFlag);
    List<TeacherModuleTask> findByModuleIdInAndDeleteFlagOrderByTaskNoAsc(List<String> moduleId, Integer deleteFlag);
    TeacherModuleTask findByIdAndDeleteFlag(String moduleId,Integer deleteFlag);
    //List<TeacherModuleTask> findByProjectIdAndDeleteFlag(String projectId, Integer deleteFlag);

}
